package gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JMenuItem;

public class SaveItem extends JMenuItem implements ActionListener {



	private static final long serialVersionUID = 1977224713836707178L;
	private  IFrame iframe;
	
	
	
	public SaveItem(IFrame frame){
		super("Enregistrer");
		iframe=frame;
		addActionListener(this);
	}



	@Override
	public void actionPerformed(ActionEvent arg0) {
		iframe.save();		
	}
	
	
	
	
}
